diagonal difference hackerrank solution

visit shbcf.ru